package org.springblade.modules.admin.vo.task;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * @Description 一键排期入参
 * @Author ysq
 * @Date 2022/3/12
 **/
@Data
public class SpeedPlanParam {

	@ApiModelProperty(value = "电梯id集合,多个逗号隔开")
	@NotNull(message = "电梯id不能为空")
	private String elevatorIds;

	@ApiModelProperty(value = "任务计划id")
	@NotNull(message = "任务计划id不能为空")
	private Long taskPlanId;

	@ApiModelProperty(value = "首次保养时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "首次保养时间不能为空")
	private Date firstTime;

	@ApiModelProperty(value = "服务开始时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "服务开始时间不能为空")
	private Date startTime;

	@ApiModelProperty(value = "服务结束时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE)
	@NotNull(message = "服务结束时间不能为空")
	private Date endTime;

	@ApiModelProperty(value = "部门id集合,多个逗号隔开")
	@NotNull(message = "部门id不能为空")
	private String deptIds;

	@ApiModelProperty(value = "用户id集合,多个逗号隔开")
	@NotNull(message = "用户id不能为空")
	private String userIds;

	@ApiModelProperty(value = "用户名称集合")
	private String userNames;

	@ApiModelProperty(value = "部门名称集合")
	private String deptNames;
}
